home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crack It!
/
Crack It!.iso
/
CONTENT
/
DISKEDIT
/
INSTRUC.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-09-09
|
1KB
|
69 lines
{
***
INSTRUC.PAS
Instruction-related Routines and Data
(C)Copyright Gerard Paul Java 1996
Unit Source File
This unit contains code and data related to instructions used in programs.
It contains the "continue" message, and a procedure to display the "just
see box" message in the bottom line.
***
}
{$A+,B-,F-,I-,N-,R-,S-,V-}
unit Instruc;
interface
type
InstrucStr = string[60];
const
ContMsg = 'Press a key to continue';
CancelOrContMsg = 'Press Esc to cancel, any other key to continue';
procedure JustSeeBox;
procedure ShowInstTitle(Col,Row: byte);
procedure InstBox(y1,Y2: byte;String1,String2: InstrucStr);
implementation
uses
Crt,
ScreenRt,
SysRt;
{---------------------------------------------------------------------------
JustSeeBox: Displays an instruction to just see the instructions in the
box.
---------------------------------------------------------------------------}
procedure JustSeeBox;
begin
TextAttr := TextNormAttr;GotoXY(2,25);
Write('See instruction in box');
end;
procedure ShowInstTitle(Col,Row: byte);
begin
GotoXY(Col,Row);Write(' Instruction ');
end;
procedure InstBox;
begin
Window(1,1,80,25);
JustSeeBox;
TextAttr := BoxAttr;DrawBox(9,y1,72,y2,DoubleLine);
Window(11,y1+1,72,y2);textattr := textnormattr;
Writeln(String1);
TextAttr := TextHighAttr;Write(String2);
end;
end.